package com.itheima.service.impl;

import com.itheima.dao.UserMapper;
import com.itheima.domian.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class UserServicelmpl implements UserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public  User login(User user) {
        return  userMapper.login(user);
    }
}